<script setup>
import { ref } from 'vue';
const { config } = defineProps({
  config: {
    type: Object,
    required: true,
  }
});
const emits = defineEmits(['change']);

const data = ref(config.value || false);

const handleChange = (value) => {
  emits('change', value);
}
</script>

<template>
  <el-switch v-model="data"  @change="handleChange"/>
</template>

<style lang="scss" scoped>

</style>